# -*- coding:utf-8 -*-
from flask import Flask
from .settings import *
from .ext import init_ext,init_log
from .view import init_view
from .model import *


def create_app():
    app = Flask(__name__,static_url_path='')
    app.config.from_object(Settings)
    init_ext(app)
    init_view(app)
    init_log(app)
    return app